package com.hongmeng.operater.domain.newsAndVideo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hongmeng.common.annotation.Excel;
import com.hongmeng.common.core.domain.BaseEntity;

/**
 * 文章信息对象 hm_news
 *
 * @author hongmeng
 * @date 2020-12-22
 */
@ApiModel("文章信息对象")
public class HmNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** 标题 */
    @Excel(name = "标题")
    @ApiModelProperty("标题")
    private String title;

    /** 缩略图 */
    @Excel(name = "缩略图")
    @ApiModelProperty("缩略图")
    private Integer thumbnailId;

    /** 关键字 */
    @Excel(name = "关键字")
    @ApiModelProperty("关键字")
    private String keyWord;

    /** 简介 */
    @Excel(name = "简介")
    @ApiModelProperty("简介")
    private String synopsis;

    /** 文章来源 */
    @Excel(name = "文章来源")
    @ApiModelProperty("文章来源")
    private String newsSource;

    /** 文章作者 */
    @Excel(name = "文章作者")
    @ApiModelProperty("文章作者")
    private String newsAuthor;

    /** 所属专科 */
    @Excel(name = "所属专科")
    @ApiModelProperty("所属专科")
    private String belongToSpecialty;

    /** 正文 */
    @Excel(name = "正文")
    @ApiModelProperty("正文")
    private String mainText;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty("状态")
    private String newsState;

    /** 审核备注 */
    @Excel(name = "审核备注")
    @ApiModelProperty("审核备注")
    private String newsRemarks;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("发布时间")
    private Date pubdate;

    /** 阅读量/浏览量 */
    @Excel(name = "阅读量/浏览量")
    @ApiModelProperty("阅读量/浏览量")
    private Integer viewCount;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setThumbnailId(Integer thumbnailId)
    {
        this.thumbnailId = thumbnailId;
    }

    public Integer getThumbnailId()
    {
        return thumbnailId;
    }
    public void setKeyWord(String keyWord)
    {
        this.keyWord = keyWord;
    }

    public String getKeyWord()
    {
        return keyWord;
    }
    public void setSynopsis(String synopsis)
    {
        this.synopsis = synopsis;
    }

    public String getSynopsis()
    {
        return synopsis;
    }
    public void setNewsSource(String newsSource)
    {
        this.newsSource = newsSource;
    }

    public String getNewsSource()
    {
        return newsSource;
    }
    public void setNewsAuthor(String newsAuthor)
    {
        this.newsAuthor = newsAuthor;
    }

    public String getNewsAuthor()
    {
        return newsAuthor;
    }
    public void setBelongToSpecialty(String belongToSpecialty)
    {
        this.belongToSpecialty = belongToSpecialty;
    }

    public String getBelongToSpecialty()
    {
        return belongToSpecialty;
    }
    public void setMainText(String mainText)
    {
        this.mainText = mainText;
    }

    public String getMainText()
    {
        return mainText;
    }
    public void setNewsState(String newsState)
    {
        this.newsState = newsState;
    }

    public String getNewsState()
    {
        return newsState;
    }
    public void setNewsRemarks(String newsRemarks)
    {
        this.newsRemarks = newsRemarks;
    }

    public String getNewsRemarks()
    {
        return newsRemarks;
    }
    public void setPubdate(Date pubdate)
    {
        this.pubdate = pubdate;
    }

    public Date getPubdate()
    {
        return pubdate;
    }
    public void setViewCount(Integer viewCount)
    {
        this.viewCount = viewCount;
    }

    public Integer getViewCount()
    {
        return viewCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("thumbnailId", getThumbnailId())
                .append("keyWord", getKeyWord())
                .append("synopsis", getSynopsis())
                .append("newsSource", getNewsSource())
                .append("newsAuthor", getNewsAuthor())
                .append("belongToSpecialty", getBelongToSpecialty())
                .append("mainText", getMainText())
                .append("newsState", getNewsState())
                .append("newsRemarks", getNewsRemarks())
                .append("pubdate", getPubdate())
                .append("viewCount", getViewCount())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}